﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using roysland.net.xcom.core.DataAccess;

namespace roysland.net.xcom.core.Helpers
{
    public class EnglishDataParser
    {
        public static List<string> GetRecords()
        {
            byte[] buffer = XComDataAccess.GetEnglishData();
            var records = new List<string>();

            var stringFormat = ByteHelper.ByteToString(buffer);
            var entries = stringFormat.Split('\0');

            foreach(var s in entries)
            {
                records.Add(s);
            }
            return records;
        }
    }
}
